package cn.code.mycloud.module.envir.controller.admin.aqi.vo;

import cn.code.mycloud.framework.excel.core.annotations.DictFormat;
import cn.code.mycloud.framework.excel.core.convert.DictConvert;
import cn.code.mycloud.module.system.enums.DictTypeConstants;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - AQI Response VO")
@Data
@ExcelIgnoreUnannotated
public class AqiRespVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("ID")
    private Long id;

    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("用户ID")
    private Long userId;

    @Schema(description = "填报人")
    @ExcelProperty("填报人")
    private String userName;

    @Schema(description = "网格用户ID")
    @ExcelProperty("网格用户ID")
    private Long gridUserId;

    @Schema(description = "网格员")
    @ExcelProperty("网格员")
    private String gridUserName;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("名称")
    private String name;

    @Schema(description = "细颗粒物（PM2.5）", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("细颗粒物（PM2.5）")
    private String pm25;

    @Schema(description = "二氧化硫（SO2）", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("二氧化硫（SO2）")
    private String so2;

    @Schema(description = "一氧化碳（CO）", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("一氧化碳（CO）")
    private String co;

    @Schema(description = "反馈信息")
    @ExcelProperty("反馈信息")
    private String description;

    @Schema(description = "细颗粒物（PM2.5）-确认值")
    @ExcelProperty("细颗粒物（PM2.5）-确认值")
    private String pm25Confirm;

    @Schema(description = "二氧化硫（SO2）-确认值")
    @ExcelProperty("二氧化硫（SO2）-确认值")
    private String so2Confirm;

    @Schema(description = "一氧化碳（CO）-确认值")
    @ExcelProperty("一氧化碳（CO）-确认值")
    private String coConfirm;

    @Schema(description = "反馈信息）-确认值")
    @ExcelProperty("反馈信息）-确认值")
    private String descriptionConfirm;

    @Schema(description = "状态(0-待指派 1-已指派 2-已完成)")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.SYSTEM_AQI_STATUS)
    private Integer status;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "网格ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19119")
    @ExcelProperty("网格ID")
    private Long gridId;

    @Schema(description = "网格名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @ExcelProperty("网格名称")
    private String gridName;

    @Schema(description = "空气质量指数级别", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "空气质量指数级别", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.SYSTEM_AQI_LEVEL)
    private String aqiLevel;

    @Schema(description = "空气质量指数级别-确认值")
    @ExcelProperty(value = "空气质量指数级别-确认值", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.SYSTEM_AQI_LEVEL)
    private String aqiLevelConfirm;

    @Schema(description = "AQI", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("AQI")
    private Integer aqi;

    @Schema(description = "AQI-确认值")
    @ExcelProperty("AQI-确认值")
    private Integer aqiConfirm;

}